@import "./data";
@import "./color";
@import "./mixin";
// 为你推荐部分
.recommended_for_you {
    background-color: #f2f2f2;
    overflow: hidden;
    .recommended_center {
        width: $type_area_width;
        margin: 0 auto;
        overflow: hidden;
        margin-bottom: 20px;
        .recommended_title {
            height: 80px;
            img {
                height: 100%;
            }
        }
        .recommended_nav {
            width: 100%;
            height: 70px;
            overflow: hidden;
            background: #fff;
            margin-bottom: 12px;
            border-radius: 6px;
            ul {
                margin-top: 4px;
                overflow: hidden;
                li {
                    width: 170px;
                    height: 70px;
                    float: left;
                    text-align: center;
                    cursor: pointer;
                    .nav_type {
                        font-size: 17px;
                        font-weight: bold;
                        height: 24px;
                        letter-spacing: 0.5px;
                        color: #333;
                        line-height: 24px;
                        margin: 5px 0;
                        overflow: hidden;
                    }
                    .copy_writer {
                        font-size: 14px;
                        height: 26px;
                        color: #999;
                        line-height: 26px;
                        display: inline-block;
                        padding: 0 10px;
                        border-radius: 3px;
                    }
                    &.active > .nav_type {
                        color: $always_color;
                    }
                    &.active > .copy_writer {
                        background-color: $always_color;
                        color: #fff;
                    }
                }
            }
            .fixed_reco_nav{
                position: fixed;
                top: 55px;
                background-color: #fff;
                transition: .5s;
                box-shadow: 1px 1px 5px #999;
                border-radius: 6px;
            }
        }
       
        .recommended_goods_list {
            overflow: hidden;
            li {
                width: 230px;
                height: 350px;
                float: left;
                margin-bottom: 10px;
                margin-right: 10px;
                background-color: #fff;
                border-radius: 8px;
                overflow: hidden;
                &:nth-child(5n) {
                    margin-right: 0;
                }
                .recommend_goods_pic {
                    width: 230px;
                    height: 230px;
                    margin: 0 0 10px;
                    img {
                        width: 100%;
                    }
                }
                .recommend_goods_name {
                    width: 202px;
                    height: 40px;
                    margin: 0 0 8px 14px;
                    overflow: hidden;
                    color: #333;
                    font-size: 14px;
                    line-height: 20px;
                    word-break: break-all;
                }
                .recommend_goods_tag {
                    width: 100%;
                    overflow: hidden;
                    padding-left: 14px;
                    box-sizing: border-box;
                    span {
                        display: block;
                        float: left;
                        padding: 0 2px;
                        height: 16px;
                        color: #ff8000;
                        font-size: 14px;
                        line-height: 16px;
                        // font: 14px/16px "Microsoft Yahei", tahoma, arial, "Hiragino Sans GB";
                        background: #fff;
                        border: 1px solid #ff8000;
                        margin-right: 7px;
                        border-radius: 3px;
                        margin-bottom: 2px;
                        white-space: nowrap;
                    }
                }
                .recommend_goods_price {
                    height: 28px;
                    line-height: 28px;
                    padding-left: 14px;
                    box-sizing: border-box;
                    color: #f30;
                    margin-top: 5px;
                    .new_price {
                        float: left;
                        i {
                            font-size: 14px;
                        }
                        span {
                            display: inline-block;
                            font-size: 20px;
                            font-weight: bold;
                            margin-left: -8px;
                        }
                    }
                    .old_price {
                        float: left;
                        margin-left: 8px;
                        color: #999;
                        i {
                            text-decoration: line-through;
                            font-size: 12px;
                        }
                        span {
                            font-size: 12px;
                            display: inline-block;
                            margin-left: -8px;
                            text-decoration: line-through;
                        }
                    }
                }
            }
        }
    }
}